package test;

public class Demo10 {
    public static void main(String[] args) throws InterruptedException {
        Thread thread = new Thread(()->{
            for (int i = 0; i < 3; i++){
                System.out.println("Hello Thread");
            }
        });
        thread.start();
        thread.join();
        System.out.println("Hello main");
    }
}
